﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="incluirPatrocinio.aspx.cs" Inherits="UI.incluirPatrocinio" MasterPageFile="~/wiki.Master"%>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="incluirPatrocinioContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h2>Inserir Patrocínio<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </h2>
    <br />  
    <asp:Panel ID="pnSucesso" runat="server" BackColor="#CCFFCC" 
        style="text-align: center" Visible="False">
        <img alt="" src="Images/Ok-16x16.png" style="width: 16px; height: 16px" />
        <asp:Label ID="lbMsgSucesso" runat="server" 
            style="font-weight: 700; color: #006600; font-size: small"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="pnFalha" runat="server" BackColor="#FFCCCC" 
                    style="text-align: center" Visible="False">
                    &nbsp;<img alt="" src="Images/Error-16x16.png" style="width: 16px; height: 16px" />
                    <asp:Label ID="lbMsgFalha" runat="server" 
                        style="font-weight: 700; color: #FF0000; font-size: small;"></asp:Label>
                </asp:Panel>
    <asp:ValidationSummary ID="vsEditarPostNew" runat="server" BackColor="#FFFFCC" 
        Font-Bold="True" style="font-size: small" /> 
    <table style="width: 100%">
        <tr>
            <td>
                Título<b>:</b></td>
            <td style="width: 362px">
                <asp:TextBox ID="txtTitulo" runat="server" Height="21px" Width="363px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="rfvTitulo" runat="server" 
                    ControlToValidate="txtTitulo" Display="None" ErrorMessage="Informe o Titulo!"></asp:RequiredFieldValidator>
                         </td>
        </tr>
     <tr>
            <td>
                Imagem<b>:</b></td>
            <td style="width: 362px">
                <img id="imgPostNew" height="50" width="65" runat="server"/>
                <asp:FileUpload ID="fupImage" runat="server" CssClass="button-search" />
            </td>
            <td>
                <asp:RequiredFieldValidator ID="rfvImage" runat="server" 
                    ControlToValidate="fupImage" Display="None" 
                    ErrorMessage="Insira uma imagem à Post New" Enabled="False"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                Descrição:</td>
            <td style="width: 362px">
                <asp:TextBox ID="txtDescricao" runat="server" Height="200px" 
                    TextMode="MultiLine" Width="365px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="rfvDescricao" runat="server" 
                    ControlToValidate="txtDescricao" Display="None" 
                    ErrorMessage="Informe a descrição!"></asp:RequiredFieldValidator>
                         </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td align="right" style="width: 362px">
                <asp:Button ID="btInserir" runat="server" onclick="btInserir_Click" 
                    style="text-align: right" Text="Inserir" CssClass="botao" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btBack" runat="server" onclick="btBack_Click" 
                    style="text-align: right" Text="Voltar" CssClass="botao" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
       </table>
</asp:Content>